package com.chuxi.demo.cglib2;

import com.sun.org.apache.bcel.internal.generic.NEW;
import org.springframework.cglib.proxy.Enhancer;

import java.util.HashMap;

/**
 * @ Author:任留辉
 * @ Description:
 * @ Date:Created in 20:41 2021/7/23 0023
 */
public class Client {
    public static void main(String[] args) {

        Enhancer enhancer = new Enhancer();
        enhancer.setSuperclass(Arith.class);
        enhancer.setCallback(new MyMethodInterceptor());
        Arith sou = (Arith) enhancer.create();
        sou.say(5,95);
    }
}
